﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Etc2010r.aspx.cs" Inherits="Updms.Etc.Etc2010r" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments" TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>▒ UPDMS [Etc2010r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->	
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Etc2010r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_chart" Text="챠트" runat="server" CssClass="ibtn ibtn_chart" OnClick="ibtn_chart_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table cellspacing="0" cellpadding="0" border="0" width="100%">
				<tr>
					<td valign="top" width="55%">
						<!-- 시리즈별 보유수 시작 -->
						<div class="sub_title_icon"><asp:Literal id="ltr_total_cnt_by_series" Text="시리즈별 보유수" runat="server" /></div>
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td><asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" ShowFooter="True">
										<Columns>											
											<asp:BoundField DataField="Series_Nm" HeaderText="시리즈" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="25%" />
											</asp:BoundField>
											<asp:BoundField DataField="Total_Cnt" HeaderText="제품수" DataFormatString="{0:#,##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Total_Price" HeaderText="가격" DataFormatString="{0:#,##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Total_Brick_Cnt" HeaderText="브릭수" DataFormatString="{0:#,##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Total_Brick_Weight" HeaderText="브릭무게" DataFormatString="{0:#,##0.##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Total_Figure_Cnt" HeaderText="피겨수" DataFormatString="{0:#,##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView>
								</td>
							</tr>
						</table>
						<!-- 시리즈별 보유수 끝 -->
						<!--최근구입정보 시작-->
						<div class="sub_title_icon" style="margin:10px 0 0 0;"><asp:Literal id="ltr_stitle_recent_tour" Text="최근구입정보" runat="server" /></div>
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td><asp:GridView ID="GridView2" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView2_RowDataBound">
										<Columns>											
											<asp:BoundField HeaderText="N">
												<ItemStyle HorizontalAlign="Center" Width="5%" />
											</asp:BoundField>
											<asp:BoundField DataField="Series_Nm" HeaderText="시리즈" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="20%" />
											</asp:BoundField>
											<asp:BoundField DataField="Prod_Nm" HeaderText="제품명" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="40%" />
											</asp:BoundField>
											<asp:BoundField DataField="Cnt" HeaderText="경과일" DataFormatString="{0:#,##0}" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Buy_Dt" HeaderText="최근구입일" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Center" Width="20%" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView>
								</td>
							</tr>
						</table>
						<!--최근구입정보 끝-->
					</td>
					<td width="1%"></td>
					<td valign="top" width="44%">
						<!-- 요일별 구입수 시작 -->
						<div class="sub_title_icon"><asp:Literal id="ltr_buy_cnt_by_weekday" Text="요일별 구입수" runat="server" /></div>
						<table class="default">
							<tr>
								<td class="td_box">
									<chartfx7:chart id="chart_buy_cnt_by_weekday" runat="server" width="440px" height="250px" Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False">
										<AxisY Title-Text="" Step="3">
										<Grids Major-Style="Solid" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX LabelAngle="90" Title-Text="">
										</AxisX>

										<AllSeries Gallery="Polar"></AllSeries>

										<LegendBox Visible="False"></LegendBox>

										<MainPane AxisY-Title-Text=""></MainPane>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
											<chartfx7galleries:Radar>
											</chartfx7galleries:Radar>
										</SpecialObjects>
										<Series>
											<chartfx7:SeriesAttributes />
											<chartfx7:SeriesAttributes />
											<chartfx7:SeriesAttributes />
										</Series>
									</chartfx7:chart>
								</td>
							</tr>
						</table>
						<!-- 요일별 구입수 끝 -->
						<!-- 년도별 구입수 시작 -->
						<div class="sub_title_icon" style="margin:10px 0 0 0;"><asp:Literal id="ltr_stitle_buy_by_yearly" Text="년도별 구입수" runat="server" /></div>
						<table class="default">
							<tr>
								<td class="td_box">
									<chartfx7:chart id="chart_buy_by_yearly" runat="server" width="440px" height="250px"  Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False" PlotAreaMargin-Left="100" PlotAreaMargin-Top="12">
										<AxisY Title-Text="">
										<Grids Major-Style="Dash" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX Title-Text="" LabelAngle="0">
										<Grids Major-Visible="False"></Grids>
										</AxisX>

										<MainPane AxisY-Title-Text="구입수"></MainPane>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
										</SpecialObjects>
										<Series>
											<chartfx7:SeriesAttributes Gallery="Lines" Text="구입수" PointLabels-Visible="true" PointLabels-LineAlignment="Far" />
											<chartfx7:SeriesAttributes AxisY="Secondary Y Axis" Gallery="Bar" PointLabels-LineAlignment="Near"
												PointLabels-Visible="True" Text="금액" />
											<chartfx7:SeriesAttributes />
										</Series>
										<AxisY2 Title-Text="금액" Visible="False">
											<Grids Major-Visible="False" />
											<LabelsFormat CustomFormat="###,###,##0.##" />
										</AxisY2>
										<LegendBox Dock="Top">
										</LegendBox>
									</chartfx7:chart>
								</td>
							</tr>
						</table>
						<!-- 년도별 구입수 끝 -->
					</td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
</body>
</html>